/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package topcoder;

import java.util.Scanner;

/**
 *
 * @author Mohamed.Azouz
 */
public class Main {

    
    public static void main(String[] args) {

        Scanner sc = new Scanner(System.in);
        int sz = sc.nextInt();
        for (int i = 0; i < sz; i++) {
            System.out.println(sc.nextInt() + sc.nextInt());
        }
    }
}
